package managers
{
    import events.ApplicationEvent;
    
    import flash.display.DisplayObject;
    import flash.events.Event;
    
    import mx.core.Application;
    import mx.managers.PopUpManager;
    
    import views.WhitePopUp;
    
    public class ApplicationManager
    {
        [Bindable]
        public var step:int;
        
        public function ApplicationManager()
        {
        
        }
        
        public function navigation(event:Event):void
        {
            switch (event.type)
            {
                case(ApplicationEvent.SUCCESS_LOGIN):
                    step = 1;
                    break;
            
            }
        }
        
        public function openAlbum(id:int):void
        {
            var pop:WhitePopUp = PopUpManager.createPopUp(Application.application as DisplayObject, WhitePopUp, true) as WhitePopUp;
            PopUpManager.centerPopUp(pop);
        }
    
    }
}